﻿<%@ Page Title="" Language="C#" MasterPageFile="../Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="sec">
        <form method="post" action="<%= Url.EzDeskUrl("/Message/ChoosePerson") %>">
            部门：<%= Html.DropDownList("DeptId") %><input class="button" type="submit" value="选择" />        
        </form>
    </div>
    <div class="sec">
        <form method="post" action="<%= Url.EzDeskUrl("/Message/SendAdv") %>">
        <% var usersToChooseList = ViewData["usersToChooseList"] as IList<SimpleUser>; %>
        <%// 每行显示4个名字
            int index = 0; %>
        <% foreach (var user in usersToChooseList)
           { %>
        <input type="checkbox" name="usersToSend" value="<%= user.Id %>" /><label for="usersToSend"><%= user.Name %></label>&nbsp;&nbsp;
        <%if(++index % 4 == 0){ %><br /><%} %>
        <%} %>
        <br /><input type="submit" class="button" value="确定" />
        
        </form>
    </div>
</asp:Content>
